from django.shortcuts import render

# Create your views here.
from django.http import HttpResponse


def book(request):
    return HttpResponse("图书馆")

def book_dtaail(request,book_id):
    text = "您获取 图书id是:{}".format(book_id)
    return HttpResponse(text)

def author_dateail(request):
    author_id = request.GET.get('id')
    text = "您获取作者的id是:{}".format(author_id)
    return HttpResponse(text)